<?php
    include("../config.php");
    include("function.php");
    include("header.php");
?>  
    <!-- Main -->
    <div class="container-fluid">
      <div class="row">
        <!-- left menu -->
        <?php include("leftmenu.php"); ?>
        <!-- end left menu -->
        <!-- Main content -->
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2">
        <?php
            if($_GET['mod']){
                $mod = $_GET['mod'];
                if($_GET['act']){
                    $act = $_GET['act'];
                }else{
                    $act = "list";
                }
                $name = "modules".DS.$mod.DS.$act.".php";
                include($name);
            }
            else{
                $module = "main.php";
                include($module); 
            }
        ?>
        </div>
        <!-- end mani content -->
      </div>
    </div>
    <!-- end Main -->
<?php include("footer.php"); ?>       